#include "CompassRender.h"
#include <TGS/MapControl2.0/RenderContext.h>
#include <QPainter>

namespace TGS{
namespace MapControl{

CompassRender::CompassRender(const QString& compassFile)
{
	_compass.load(compassFile);
}

void CompassRender::render(RenderContext* renderContext)
{
	if(!isVisible()) return;
	QRect rect(10, 10, 128, 128);
	renderContext->painter()->drawPixmap(rect, _compass);
}

}//MapControl
}//TGS

